--- title: "L1-004 计算摄氏温度" created: 2025-11-28 tags: - 算法 --- # L1-004 计算摄氏温度 ## 题目 [计算摄氏温度](https://pintia.cn/problem-sets/994805046380707840/exam/problems/type/7?problemSetProblemId=994805142086336512&page=0) ![[image-487c4ca2.png]] ## 思路分析 ## 代码实现 ```cpp #include using namespace std; #define endl '\n' int main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); int F;cin>>F; cout<<"Celsius = "<<5*(F-32)/9; return 0; } ``` ## 同类题型 ## 视频讲解 --- ⬅️ [[L1-003 个位数统计|L1-003 个位数统计]] 🏠 [[00-天梯赛]] ➡️ [[L1-005 考试座位号|L1-005 考试座位号]]